export const rules = {
  phoneNumber: [
    {
      required: true,
      message: '手机号不能为空',
      trigger: 'blur'
    },
    {
      pattern: /^[1][3,4,5,7,8][0-9]{9}$/,
      message: '不合法的手机号'
    }
  ],
  authCode: [
    {
      required: true,
      message: '验证码不能为空',
      trigger: 'blur'
    },
    {
      pattern: /^d{4,4}$/,
      message: '验证码必须为4个数字'
    }
  ]
}
